package com.zzxy.spring12.service.impl;

import com.zzxy.spring12.dao.IStudentDao;
import com.zzxy.spring12.dao.impl.StudentDaoImpl;
import com.zzxy.spring12.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl  implements IStudentService {
    @Autowired
    public IStudentDao studentDao;

  /*  public IStudentDao getStudentDao() {
        return studentDao;
    }

    public void setStudentDao(IStudentDao studentDao) {
        this.studentDao = studentDao;
    }*/

    @Override
    public void addStudent() {
        studentDao.addStu();
    }

    public void setStudentDao(StudentDaoImpl studentDao) {
    }
}
